<oc-dialog oc-dialog-switch="MS" oc-dialog-icon="project" style="width:30rem;height:20rem">
	<div class="grid" ng-controller="ProjectDetail" style="background:#f6f6f6">
		<nav class="oc-toolbar" style="border-bottom:1px solid #aaa;background:#fff">
			<button class="ico refresh" title="刷新" ng-click="refreshProject()"></button><hr/>
			<button oc-dialog-open="configProbe" ng-class="{error:!isProbeConfigValid()}"
				class="ico eyedropper" title="探针配置"></button>
			<div class="group" ng-show="token.code==''">
				<select name="select" id="select-token-date" style="width:7rem"
					ng-model="upTime" ng-options="time.select as time.label for time in upTimeList"
					ng-class="{error:!upTime}">
					<option value="">== 请选择有效期 ==</option>
				</select>
				<button ng-click="createToken()" ng-disabled="!upTime"
					ng-class="{error:upTime&&token.code==''}"
					class="ico addToken" title="获取令牌"></button>
			</div>
			<div class="group" ng-hide="token.code==''">
				<input type="text" ng-model="token.code" readonly style="width:7rem" />
				<button class="ico deleteToken"
					ng-click="deleteToken()"
					title="删除令牌"></button>
			</div>
			<hr/>
			<button class="ico link" ng-class="{error:!isProbeConnected}"
				ng-click="testConnection()"
				title="测试链接"></button>
			<input type="text" ng-model="probeState" readonly
				ng-style="proebeStateStyle"
				style="width:4rem;text-shadow:1px 1px 0 #ccc" />
		</nav>
		<a class="startProbe" target="_blank" ng-class="{ready:isProbeReady()}"
			ng-href="{{isProbeReady()?project.probePath+'/'+project.probeId+'.html#'+token.code:''}}"
			title="启动探针" style="right:2.3rem;top:0"
			ng-mouseenter="probeEnter($event)" ng-mouseleave="probeLeave($event)"></a>
		<oc-tab-set style="bottom:1.7rem;top:1.6rem" oc-tab-control="tabs">
			<oc-tab oc-tab-title="项目概述">
				<label style="top:0;left:0" for="project-name">项目名称：</label>
				<input type="text" ng-model="project.name" ng-change="changed()"
					style="top:1rem;left:0;width:28.7rem" id="project-name">
				<label style="top:2.8rem;left:0" for="create-time">创建时间：</label>
				<input type="text" readonly
					ng-model="createtime" ng-model-options="{getterSetter:true}"
					style="top:3.8rem;left:0;width:14.2rem" id="create-time">
				<label style="top:2.8rem;left:14.8rem" for="update-time">更改时间：</label>
				<input type="text" readonly ng-change="changed()"
					ng-model="updatetime" ng-model-options="{getterSetter:true}"
					style="top:3.8rem;right:0;width:14.2rem" id="update-time">
				<label style="top:5.3rem;left:0" for="project-comment">描述：</label>
				<textarea ng-model="project.comment"
					style="top:6.3rem;left:0;width:28.7rem;height:3.5rem" id="project-comment"></textarea>
				<button ng-disabled="!isChanged" ng-click="updateProject()"
					style="bottom:.3rem;right:0">更新</button>
			</oc-tab>
			<oc-tab oc-tab-title="数据字典">
				<button class="ico refresh" title="刷新字典"
					ng-click="refreshDictionaryList()"
					style="top:0;left:0"></button>
				<button class="ico delete" title="删除"
					ng-disabled="dictionaryList.selected==-1"
					ng-click="deleteDictionary()"
					style="0;left:1.4rem"></button>
				<oc-list oc-list-data="dictionaries" oc-list-control="dictionaryList"
					style="border:1px solid #ccc;top:1.4rem;bottom:0;left:0;right:0"></oc-list>
			</oc-tab>
			<oc-tab oc-tab-title="测试用例">
				<button class="ico refresh" ng-click="refreshCaseList()"
					title="刷新测试用例" style="top:0;left:0"></button>
				<button class="ico delete" title="删除"
					ng-click="deleteCase()"
					ng-disabled="caseList.selected==-1"
					style="top:0;left:1.4rem"></button>
				<oc-list oc-list-data="cases" oc-list-control="caseList"
					style="border:1px solid #ccc;top:1.4rem;bottom:0;left:0;right:0"></oc-list>
			</oc-tab>
			<oc-tab oc-tab-title="公共元素">
				<button class="ico refresh" ng-click="refreshObject()"
					title="刷新" style="top:0;left:0"></button>
				<button class="ico delete" title="删除" style="top:0rem;left:1.4rem"></button>
				<oc-list oc-list-data="object" oc-list-control="objectList"
					style="border:1px solid #ccc;top:1.4rem;bottom:0;left:0;right:0"></oc-list>
			</oc-tab>
			<oc-tab oc-tab-title="测试结果">
				<button class="ico refresh" title="刷新结果"
					ng-click="refreshResultList()"
					style="top:0;left:0"></button>
				<button class="ico delete" title="删除"
					ng-disabled="resultList.selected==-1"
					ng-click="deleteResult()"
					style="top:0;left:1.4rem"></button>
				<oc-list oc-list-data="results" oc-list-control="resultList"
					style="border:1px solid #ccc;top:1.4rem;bottom:0;left:0;right:0"></oc-list>
			</oc-tab>
		</oc-tab-set>
		<button ng-click="deleteProject()"
			style="left:.3rem;bottom:.3rem">删除项目</button>
	</div>
</oc-dialog>
